export default class VNode{
    constructor(tag,//标签类型，Div，Span，Input，#Text
                elm,//对用真实节点
                children,//当前节点下的子节点
                text,//当前虚拟节点
                data,//VNodeData,暂时保留，暂无意义
                parent,//父级节点
                nodeType//节点类型
                ){
        this.tag = tag;
        this.elm = elm;
        this.children = children;
        this.text = text;
        this.data = data;
        this.parent = parent;
        this.nodeType = nodeType;
        this.env = {}; // 当前节点的环境变量
        this.instruction = null;// 存放指令
        this.template = [];//当前节点涉及到的模板
    }
}
